﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace GarmentKingProto
{
    public partial class frmAdminDC : Form
    {
        internal static string type;

        public frmAdminDC(string x)
        {
            type = x;
            InitializeComponent();
        }

        private void frmAdmin_Load(object sender, EventArgs e)
        {
            if (type == "WB")
            {
                lblBrand.Text = "White Boy";
            }
            else
            {
                lblBrand.Text = "Joint Fab";
            }

            lblBrand.Left = (this.Width - lblBrand.Width) / 2;
            //dateTimePicker1.Value = DateTime.Now;
            toolStripStatusLabel1.Text = "";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            frmPurchase frm = new frmPurchase(type);
            frm.ShowDialog();
        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void FormWB_FormClosed(object sender, FormClosedEventArgs e)
        {
            frmLogin.loginShow();
        }

        private void button1_MouseEnter(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "Enter Purchase Details";
        }

        private void button_Leave(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "";
        }

        private void button3_Enter(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "Enter Cutting Details";
        }


    }
}
